<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>易立德单点登录</title>
<link rel="shortcut icon" href="./favicon.ico" th:href="@{/favicon.ico}">
<link rel="stylesheet" href="./css/font-awesome.min.css" th:href="@{/css/font-awesome.min.css}">
<link rel="stylesheet" href="./css/login/theme1/style.css" th:href="@{/css/login/theme1/style.css}">
</head>

<body>
	<div class="materialContainer">
		<div class="box">
			<div class="title">
				<samp th:text="${oauthClient != null and oauthClient.clientName != null ? oauthClient.clientName : '登录'}"></samp>
			</div>
			<form onclick="this.disabled=false" onsubmit="return handleSubmit()" method="post" th:action="${#request.getQueryString() != null ? #request.getRequestURL() + '?' + #request.getQueryString() : #request.getRequestURL()}">
				<div class="input">
					<label for="username">用户名</label> <input type="text" name="username" id="username"> <span class="spin"></span>
				</div>
				<div class="input">
					<label for="password">密码</label> <input type="password" name="password" id="password"> <span class="spin"></span>
				</div>
				<div class="username-error" th:text="${errorMsg}"></div>
				<div class="button login">
					<button>
						<span>登录</span> <i class="fa fa-check"></i>
					</button>
				</div>
				<div style="clear: both; margin-left: 130px;">
					<a th:href="${#request.contextPath}+'/password/new'" target="_blank">修改/忘记密码？</a>
				</div>
			</form>
		</div>
		<!-- <div class="overbox">
			 <div class="material-button alt-2">
                <span class="shape"></span>
            </div> 
			<div class="title">注册</div>
			<div class="input">
				<label for="regname">用户名</label> <input type="text" name="regname" id="regname"> <span class="spin"></span>
			</div>
			<div class="input">
				<label for="regpass">密码</label> <input type="password" name="regpass" id="regpass"> <span class="spin"></span>
			</div>
			<div class="input">
				<label for="reregpass">确认密码</label> <input type="password" name="reregpass" id="reregpass"> <span class="spin"></span>
			</div>
			<div class="button">
				<button>
					<span>注册</span>
				</button>
			</div>
		</div> -->
	</div>
	<script src="./js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script>
	<script src="./js/login/theme1/login.js" th:src="@{/js/login/theme1/login.js}"></script>
</body>

</html>